package com.project.bean;

import java.time.LocalDate;

/**
 * @Author(王思翰)
 * @Description(类的描述)班级实体类
 * @Date(创建时间) 2021/7/10 16:25
 */
public class ClassBean {
    /**
     * 班级Id
     */
    private Integer classId;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 开班时间，默认当前
     */
    private LocalDate startDate=LocalDate.now();

    /**
     * 带班老师
     */
    private String teacherName;

    /**
     * 所属学校实体类
     */
    private SchoolBean schoolBean;

    /**
     * 当前班级总人数
     */
    private Integer studentNumber=0;

    public ClassBean() {
    }

    public ClassBean(Integer classId) {
        this.classId = classId;
    }

    public ClassBean(String teacherName, SchoolBean schoolBean) {
        this.teacherName = teacherName;
        this.schoolBean = schoolBean;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public SchoolBean getSchoolBean() {
        return schoolBean;
    }

    public void setSchoolBean(SchoolBean schoolBean) {
        this.schoolBean = schoolBean;
    }

    public Integer getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(Integer studentNumber) {
        this.studentNumber = studentNumber;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", name='" + name + '\'' +
                ", startDate=" + startDate +
                ", teacherName='" + teacherName + '\'' +
                ", schoolBean=" + schoolBean +
                ", studentNumber=" + studentNumber +
                '}';
    }
}
